package com.preparation.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.preparation.domain.User;
import com.preparation.dto.ModifyPasswordDto;
import com.preparation.dto.R;

public interface IUserService extends IService<User> {
    //注册
    R register(User user);

    //登录
    R login(User user);

    //根据用户名查询用户
    User findByUsername(String username);

//    //修改密码
//    R updatePwd(ModifyPasswordDto dto);

    //修改用户头像
    Boolean updateAvatar(Integer id, String avatar);


}
